package cn.wen.yinxiu.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import cn.wen.yinxiu.common.toolkit.PageUtils;
import cn.wen.yinxiu.system.entity.AdvertEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 *
 * @ClassName: AdvertService
 * @Author 小飞
 * @Email coderwen22@163.com
 * @Date 2023-05-22 09:46:50
 * @Description: 的Service类
 */
public interface AdvertService extends IService<AdvertEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 添加广告到作品中
     *
     * @param imageList
     * @param advertInfoJSON
     * @return
     */
    boolean saveWorksAdvertInfo(MultipartFile[] imageList, String advertInfoJSON);

    /**
     * 移除广告信息
     *
     * @param worksId
     * @param advertId
     * @return
     */
    boolean deleteWorksAdvertInfo(Long worksId, Long advertId);

    /**
     * 修改作品的广告信息
     *
     * @param imageList
     * @param advertInfoJSON
     * @return
     */
    boolean updateWorksAdvertInfo(MultipartFile[] imageList, String advertInfoJSON);
}

